define(['./api/config', 'jquery'], function (conf, $) {
    const url = {
        mapHouseList: conf.IS_MOCK ?
            `${conf.MOCK_SERVER_ROOT}data/house/mock_map_house.json`
            : '',
        mapMarkData: conf.IS_MOCK ?
            `${conf.MOCK_SERVER_ROOT}data/house/mock_map_plot.json`
            : ''
    };

    let api = {
        fetchMapMarkerData(params) {
            return $.getJSON(url.mapMarkData, params);
        },
        fetchMapHouseList(params) {
            return $.getJSON(url.mapHouseList, params);
        }
    };

    api.url = url;
    return api;
});
